package ch12.variances;

public class Some<T> extends Option<T> {
    private T value;
    
    public Some( T value ) {
        this.value = value;
    }

    @Override
    public T get() {
        return value;
    }

    @Override
    public boolean isEmpty() {
        return false;
    }

    @Override
    public String toString() {
        return "Option( " + value + " )";
    }

}
